#ifndef QCOMMDRIVER_H
#define QCOMMDRIVER_H

#include "qabstractdriver.h"

class Win_Serial;
class QMission;

class SHAREDLIB_EXPORT QCommDriverHost : public QAbstractDriver
{
    Q_OBJECT
public:
    Q_INVOKABLE QCommDriverHost(QAbstractHost* parent=0);
    ~QCommDriverHost();
    static QString get_show_name();
    void    start();
    void    closed();
protected:
    void    mission_done(QMission* ms);
    void    write(const QByteArray &data);

    void    update_send_data(QMission* ms);
protected slots:
    void    readyread();
protected:
    void    create_object();
    void    init_property();

protected:
    Win_Serial      *m_serial;

    QByteArray      m_recv_data;
};

#endif // QCOMMDRIVER_H
